#include "EntityFactory.h"

#include "Block.h"
#include "Player.h"

AbstractEntity* EntityFactory::createEntity( const std::string& name )
{
	if( name == "Block")
		return new Block();

	else if( name == "Player")
		return new Player();

	else if ( name == "container" )
		return new EntityGroup();

	return NULL;
}